<?php
/**
 * @version
 * @package		Joomla.Site
 * @subpackage	Templates
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
////ob_start("ob_gzhandler");
////ob_start("compress");
////
////header('Content-type: application/x-javascript');
////header('Cache-Control: must-revalidate');
////header('Expires: ' . gmdate('D, d M Y H:i:s', time() + (60 * 60)) . ' GMT');
//
//$expires = 60*60*24*14;
////header("Pragma: public", true);
////header("Cache-Control: maxage=".$expires, true);
////header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT', true);
////header('Content-type: text/javascript', true);
//header('HTTP/1.1 304 Not Modified', true);
//header('Content-type: application/x-javascript');
//
//alert(1);
//
////include(dirname(__FILE__) . '/jcarousel-0.2.8.js');
////include(dirname(__FILE__) . '/jplain.js');

$put	= 'Mein Content';
$hash	= md5($put);

JResponse::allowCache;

header('Etag: ' . $hash);
header('Cache-Control: private, must-revalidate');
header('Content-type: text/javascript');

if(isset($_SERVER['HTTP_IF_NONE_MATCH']) === true && $_SERVER['HTTP_IF_NONE_MATCH'] == $hash) {
	header('HTTP/1.1 304 Not Modified');
	header('Connection: Close');
	exit();
}

echo $put;

?>